package com.pandora.common.aop;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodProxy;

public class InvocationInfo {

	private Object proxy = null;
	private Method method = null;
	private Object[] args = null;
	private MethodProxy methodProxy = null;
	private Object result = null;
	private Throwable exception = null;

	public InvocationInfo(Object proxy, Method method, Object[] args, MethodProxy methodProxy, Object result,
			Throwable exception) {
		this.proxy = proxy;
		this.method = method;
		this.args = args;
		this.methodProxy = methodProxy;
		this.result = result;
		this.exception = exception;
	}

	public Object getProxy() {
		return proxy;
	}

	public void setProxy(Object proxy) {
		this.proxy = proxy;
	}

	public Method getMethod() {
		return method;
	}

	public void setMethod(Method method) {
		this.method = method;
	}

	public Object[] getArgs() {
		return args;
	}

	public void setArgs(Object[] args) {
		this.args = args;
	}

	public MethodProxy getMethodProxy() {
		return methodProxy;
	}

	public void setMethodProxy(MethodProxy methodProxy) {
		this.methodProxy = methodProxy;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public Throwable getException() {
		return exception;
	}

	public void setException(Throwable exception) {
		this.exception = exception;
	}
}